<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/11 11:58
 * Desc:
 */

abstract class Contract_Api_Product
{
    use Trait_Api_Image;

    use Trait_Api_Content;

    use Trait_Api_Response;

    /**
     * 搜索
     * @param array $params
     * @throws Exception
     * @return array
     */
    abstract function search(array $params = array()): array;

    /**
     * 详情
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function info(array $params = array()): array;

    /**
     * 列表搜索条件
     * @return array
     */
    abstract function query_condition(): array;

    /**
     * 订单创建
     * @param array $params
     * @return array
     * @throws Exception
     */
    abstract function create_order(array $params = array()): array;


}